import {MainLayout} from '@/layouts/index';

export const systemModuleRouter = {
  path: '/system',
  name: 'System',
  component: MainLayout,
  redirect: '/welcome',
  meta: {
    icon: '',
    title: '系统管理',
    rank: 0,
  },
  children: [
    {
      path: '/system/user',
      name: 'User',
      component: () => import('@/views/system/User/User.vue'),
      meta: {
        title: '用户管理',
      },
    },
    {
      path: '/system/role',
      name: 'Role',
      component: () => import('@/views/system/Role/Role.vue'),
      meta: {
        title: '角色管理',
      },
    },
    {
      path: '/system/menu',
      name: 'menu',
      component: () => import('@/views/system/Menu/Menu.vue'),
      meta: {
        title: '菜单',
      },
    },
  ],
};
